﻿<MCard>
    <MTabs
        @bind-Value="tab"
        BackgroundColor="deep-purple accent-4"
        Centered
        Dark
        IconsAndText>
        <MTab>
            Recents
            <MIcon>mdi-phone</MIcon>
        </MTab>

        <MTab>
            Favorites
            <MIcon>mdi-heart</MIcon>
        </MTab>

        <MTab>
            Nearby
            <MIcon>mdi-account-box</MIcon>
        </MTab>
    </MTabs>

    <MTabsItems Value="tab">
        @foreach (var item in Enumerable.Range(0, 3))
        {
            <MTabItem>
                <MCard Flat>
                    <MCardText>@text</MCardText>
                </MCard>
            </MTabItem>
        }
    </MTabsItems>
</MCard>

@code {

    StringNumber tab;

    string text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.";
}